Skip to content

Conversation

nikophil
Copy link
Member

@nikophil nikophil commented Sep 23, 2025

⚠️ This PR is on top of #968 - please only review the two last commits

@nikophil nikophil changed the title feat/attribute for reset database 2 feat(2.9): deprecate ResetDatabase trait Sep 23, 2025
@nikophil nikophil force-pushed the feat/attribute-for-reset-database-2 branch from 43f4a0b to 91dd0a7 Compare September 23, 2025 10:06
@nikophil nikophil force-pushed the feat/attribute-for-reset-database-2 branch from 91dd0a7 to a3f404b Compare September 24, 2025 17:11
@nikophil nikophil force-pushed the feat/attribute-for-reset-database-2 branch 3 times, most recently from 1ec9784 to 4272d7d Compare October 10, 2025 11:51
@nikophil nikophil force-pushed the feat/attribute-for-reset-database-2 branch 2 times, most recently from 8a6d6df to 3721f01 Compare October 10, 2025 13:56
@nikophil nikophil force-pushed the feat/attribute-for-reset-database-2 branch 6 times, most recently from f898cd3 to f48fbd2 Compare October 11, 2025 08:42
public function boot(): void
{
if ($this->container) {
if ($this->container && (!Configuration::isBooted() || !FoundryExtension::isEnabled())) {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@HypeMC, just for you to know:

now we're deprecating the usage of ResetDatabase trait in favor of an attribute + usage of the PHPUnit extension, I had errors ServiceNotFoundException: The "kernel" service is synthetic, it needs to be set at boot time before it can be used. in the database reset testsuite.

Because this currently needs to work with and without the ResetDatabase trait, the only solution I found was to check if the extension is enabled.

Don't hesitate if you have another idea. Anyway, this ugly stuff will be removed in Foundry 3

@nikophil nikophil force-pushed the feat/attribute-for-reset-database-2 branch from f48fbd2 to a8279d8 Compare October 14, 2025 06:25
@nikophil nikophil force-pushed the feat/attribute-for-reset-database-2 branch from bbeb282 to 874ce5a Compare October 17, 2025 05:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant